package com.example.stars_project_android;

import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;

import androidx.appcompat.app.AppCompatDelegate;

import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMOptions;

import java.util.Iterator;
import java.util.List;

/**
 * 在AndroidManifest执行之前先调用
 */
public class App extends Application {
    public static MainActivity mContent;
    @Override
    public void onCreate() {
        super.onCreate();
//        MODE_NIGHT_AUTO
//        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_AUTO_TIME);
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.getDefaultNightMode());
    }
}
